﻿#region Using Statements
using System.Collections.Generic;
#endregion

namespace StarFox.Sounds
{
    /// <summary>
    /// Specifies the values of sound related parameters.
    /// </summary>
    public static class SoundSettings
    {
        /// <summary>
        /// Relates a parameter identifier with the value to its corresponding parameter. 
        /// </summary>
        /// <param name="parameterName">Identifier of the parameter defined in the game.</param>
        /// <returns>Value of the parameter.</returns>
        public static string GetParameter(string parameterName)
        {
            string result;

            if (dictionary.TryGetValue(parameterName, out result))
                return result;
            else
                return null;
        }

        static Dictionary<string, string> dictionary = new Dictionary<string, string>()
        {
            // sound effects
            {"Sound_Path", @"\Sounds\Effects\"},
            {"Sound_Project", "Effects"},
            {"Sound_WaveBank", "WaveBank"},
            {"Sound_SoundBank", "SoundBank"},

            // music
            {"Music_Path", @"\Sounds\Music\"},
            {"Music_Project", "Music"},
            {"Music_WaveBank", "WaveBank"},
            {"Music_SoundBank", "SoundBank"},
        };
    }
}
